ECAP-controlled, closed-loop SCS